const http = require('http');
const server = http.createServer(function (req, res) {
    console.log(req)
    res.writeHead(200, {
        'content-type': 'text/plain'
    })
    res.end("hello,Node.js")
})

server.listen(2130, function () {
    console.log('监听端口2130')
})